
//
//  JSFormViewCell.m
//  JSMY
//
//  Created by 李建侯 on 2017/10/17.
//  Copyright © 2017年 jsmysoft. All rights reserved.
//

#import "JSFormViewCell.h"
//#import "JSFormModel.h"

@implementation JSFormViewCell

//-(void)drawRect:(CGRect)rect{
//    CGContextRef context=UIGraphicsGetCurrentContext();
//    CGContextSetFillColorWithColor(context, [UIColor whiteColor].CGColor);
//    CGContextFillRect(context, rect);
//    CGContextSetStrokeColorWithColor(context,kColor(213, 213, 213).CGColor);
//    CGContextStrokeRect(context, CGRectMake(0, rect.size.height - 1, rect.size.width, 1));
//}
//
//-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
//    if (self =[super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
//        [self setupUI];
//    }
//    return self;
//}
//
//-(void)setupUI{
//    
//    CGFloat left = 10;
//    CGFloat right = 10;
//    CGFloat margin = 10;
//
//    _logoImageView = [[UIImageView alloc] init];
//    _logoImageView.image = JS_ImageName(@"yujingxiangying_xiajiantou");
//    [self.contentView addSubview:_logoImageView];
//    
//    [_logoImageView mas_makeConstraints:^(MASConstraintMaker *make) {
//        make.right.mas_equalTo(-right);
//        make.top.mas_equalTo(margin);
//        make.size.mas_equalTo(CGSizeMake(30,30));
//    }];
//    
//    
//    _cmLabel = [[UILabel alloc] init];
//    _cmLabel.text = @"小河刘村";
//    _cmLabel.font = JS_FontSize(15);
//    _cmLabel.textColor = JSKit_Color_Gray_1;
//    _cmLabel.textAlignment = NSTextAlignmentLeft;
//    [self.contentView addSubview:_cmLabel];
//    
//    [_cmLabel mas_makeConstraints:^(MASConstraintMaker *make) {
//        make.left.mas_equalTo(left);
//        make.top.mas_equalTo(margin);
//        make.height.mas_equalTo(30);
//    }];
//    
//    
//    _zyztLabel = [[UILabel alloc] init];
//    _zyztLabel.text = @"18910690342";
//    _zyztLabel.textAlignment = NSTextAlignmentLeft;
//    _zyztLabel.font = JS_FontSize(15);
//    _zyztLabel.textColor = kColor(83, 152, 247);
//    [self.contentView addSubview:_zyztLabel];
//    
//    [_zyztLabel mas_makeConstraints:^(MASConstraintMaker *make) {
//        make.left.mas_equalTo(_cmLabel.mas_right).with.offset(margin*2);
//        make.top.mas_equalTo(margin);
//        make.height.mas_equalTo(30);
//    }];
//    
//    
//    _timeLabel = [[UILabel alloc] init];
//    _timeLabel.text = @"(2017-09-18)";
//    _timeLabel.textAlignment = NSTextAlignmentLeft;
//    _timeLabel.font = JS_FontSize(13);
//    _timeLabel.textColor = JSKit_Color_Gray_1;
//    [self.contentView addSubview:_timeLabel];
//    
//    [_timeLabel mas_makeConstraints:^(MASConstraintMaker *make) {
//        make.left.mas_equalTo(_zyztLabel.mas_right).with.offset(0);
//        make.top.mas_equalTo(margin);
//        make.height.mas_equalTo(30);
//    }];
//    
//    
//    _zqtjBtn = [UIButton buttonWithType:UIButtonTypeCustom];
//    [_zqtjBtn addTarget:self action:@selector(zqtjCallBack:)
//       forControlEvents:UIControlEventTouchUpInside];
//    [_zqtjBtn setImage:JS_ImageName(@"yujingxiangying_xiangyingfankui") forState:UIControlStateNormal];
//    [self.contentView addSubview:_zqtjBtn];
//    
//    [_zqtjBtn mas_makeConstraints:^(MASConstraintMaker *make) {
//        make.right.mas_equalTo(-right);
//        make.centerY.equalTo(self.contentView);
//        make.size.mas_equalTo(CGSizeMake(20, 20));
//    }];
//    
//    
//    _xyfkBtn = [UIButton buttonWithType:UIButtonTypeCustom];
//    [_xyfkBtn setImage:JS_ImageName(@"yujingxiangying_zaiqingtongji") forState:UIControlStateNormal];
//    [_xyfkBtn addTarget:self action:@selector(xyfkCallBack:) forControlEvents:UIControlEventTouchUpInside];
//    [self.contentView addSubview:_xyfkBtn];
//    
//    [_xyfkBtn mas_makeConstraints:^(MASConstraintMaker *make) {
//        make.right.mas_equalTo(_zqtjBtn.mas_left).with.offset(-margin*2);
//        make.centerY.equalTo(self.contentView);
//        make.size.mas_equalTo(CGSizeMake(20, 20));
//    }];
//}
//
////灾情统计
//-(void)zqtjCallBack:(UIButton *)sender
//{
//    if (self.zqtjCallBack) { self.zqtjCallBack(); }
//}
//
////打电话
//-(void)xyfkCallBack:(UIButton *)sender
//{
//    if (self.xyfkCallBack) { self.xyfkCallBack(); }
//}
//
//+(instancetype)setCellTableView:(UITableView *)tableview withIndentifier:(NSString *)indentifer
//{
//    JSFormViewCell *cell = [tableview dequeueReusableCellWithIdentifier:indentifer];
//    if (cell == nil) {
//        cell = [[JSFormViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:indentifer];
//    }
//    return cell;
//}

@end
